#pragma once

void vunmap_range_noflush(unsigned long start, unsigned long end);

/*
 *	Lowlevel-APIs (not for driver use!)
 */

static inline size_t get_vm_area_size(const struct vm_struct *area)
{
    if (!(area->flags & VM_NO_GUARD))
        /* return actual size without guard page */
        return area->size - PAGE_SIZE;
    else
        return area->size;
}
